package cn.young.javalearning.designpattern.factorypattern.f_simplefactoryplus;

import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Apple;

public class Main {
    public static void main(String[] args) {
        Apple bean = new SimpleFactory<Apple>().getBean(Apple.class);
        bean.setColor("red").setSize("big");
        System.out.println("appleBean = [" + bean.toString() + "]");
    }
}
